Cordova Build.json のパスワード セキュリティ (Cordova Build.json password security)


問題の説明

Cordova Build.json のパスワード セキュリティ (Cordova Build.json password security)

apk をビルドして署名するときに、cordova が build.json ファイルの storePassword および password フィールドへのパスワードを求めるプロンプトを出すのに問題がありました。私が行った解決策は、それらを build.json ファイルに入力することです。

私の質問: build.json に手動でパスワードを入力するときにセキュリティ上の問題はありますか (パスワードが何らかの形で含まれているなど)。実際に署名された apk など)?

cordova プロジェクトのルートに build.json があるので、それは自動的に検出され、必要なことは次のとおりです:

cordova build android ‑‑release

. ..これが、私がこのルートをたどった理由です(うまくいきます)。ばかげた質問のように思えるかもしれませんが、Cordova のドキュメントには次のように記載されています。

"リリース署名については、


リファレンスソリューション

方法 1:

I believe the main reason is to avoid storing a password in a plain text in build.json and instead type it in console:

{
    "android": {
        "debug": {
            "keystore": "../android.keystore",
            "storePassword": "android",
            "alias": "mykey1",
            "password" : "password",
            "keystoreType": ""
        },
        "release": {
            "keystore": "../android.keystore",
            "storePassword": "",
            "alias": "mykey2",
            "password" : "password",
            "keystoreType": ""
        }
    }
}

or take from an environment variable: cordova run android ‑‑release ‑‑ ‑‑keystore=../my‑release‑key.keystore ‑‑storePassword=%STORE_PASS% ‑‑alias=mykey2 ‑‑password=password.

方法 2:

the passwords somehow being included in the actual signed apk

The build.json file won't get included in the final apk that gets built. You can verify this by unzipping the apk to cross‑check.

Hope that helps.

(by SamdasergeMahendra Liya)

リファレンスドキュメント

  1. Cordova Build.json password security (CC BY‑SA 2.5/3.0/4.0)

#signing #APK #cordova






関連する質問

Google アクセス トークンを使用してユーザー プロファイルを取得するにはどうすればよいですか (How do I get user profile using Google Access Token)

コード署名ツールでMac開発者証明書を使用してJavaアプリケーションに署名するにはどうすればよいですか? (How to use Mac Developer Certificate with codesign tool to sign Java application?)

apk の署名中にエラーが発生しました: 見つかりません (Error during signing apk: unable to find)

JwtSecurityTokenHandler.CreateToken で署名するときに「無効なアルゴリズムが指定されました」 ("Invalid algorithm specified" when signing with JwtSecurityTokenHandler.CreateToken)

アセンブリの FullName プロパティのチェックを無効にできますか? 厳密な命名を使用せずに同様のチェックを実行できますか? (Can a check on the FullName property of an assembly be defeated? Can a similar check be performed without the use of strong naming?)

Cordova Build.json のパスワード セキュリティ (Cordova Build.json password security)

アプリリリース用の keytool による秘密鍵の取得 (Obtaining a private key through the keytool for app release)

android bundleRelease は aab に署名しません (android bundleRelease does not sign the aab)

証明書に iOS 署名証明書を作成する (create ios signing certificate in my certificates)

APKに署名する必要がある理由は何ですか? (What reasons does it have to sign apk?)

signtool.exe エラー: Excel マクロの署名時に SignerSign() が失敗しました (-2147220492/0x800403f4) (signtool.exe Error: SignerSign() failed (-2147220492/0x800403f4) when signing Excel Macro)

署名付き URL のこの実装は、かなり安全ですか? (Is this implementation of signed URLs reasonably secure?)







コメント